﻿namespace MSSqlSchemaDoc.Core
{
    using System;
    using System.Collections.Generic;
    using System.Text;

    /// <summary>
    /// Used for events that pass single values as arguments.
    /// </summary>
    /// <typeparam name="T">The type of the single value.</typeparam>
    public class SimpleEventArgs<T> : EventArgs
    {
        /// <summary>
        /// Initializes a new instance of the SimpleEventArgs class.
        /// </summary>
        public SimpleEventArgs() : base() { }

        /// <summary>
        /// Initializes a new instance of the SimpleEventArgs class.
        /// </summary>
        /// <param name="value">The new value of the argument.</param>
        public SimpleEventArgs(T value) : base()
        {
            this.Value = value;
        }

        /// <summary>
        /// Gets or sets the value of the argument.
        /// </summary>
        public T Value { get; set; }
    }
}
